﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/WebMaster.Master" AutoEventWireup="true"
    CodeBehind="RPTSchoolConcreteTest.aspx.cs" Inherits="MaxStudio.Concrete.Web.Pages.RPTSchoolConcreteTest" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript" type="text/javascript">
        function CloseDialog() {
            $("#dialog").dialog("close");
        }
        function CloseEditDialog() {
            $("#EditDialog").dialog("close");
        }
        function OpenDialog() {
            $("#EditDialog").dialog("open");
            return false;
        }
        function OpenConfirmDialog() {
            $("#dialog-confirm").dialog("open");
            return false;
        }
        function CloseConfirmDialog() {
            $("#dialog-confirm").dialog("close");
            return false;
        }
        $(function() {
            var dlg = jQuery("#dialog").dialog({
                draggable: true,
                resizable: true,
                closed: true,
                show: 'Transfer',
                hide: 'Transfer',
                autoOpen: false,
                width: 800,
                minHeight: 10,
                minwidth: 10
            });
            dlg.parent().appendTo(jQuery("form:first"));

            var Editdlg = jQuery("#EditDialog").dialog({
                draggable: true,
                resizable: true,
                closed: true,
                show: 'Transfer',
                hide: 'Transfer',
                autoOpen: false,
                width: 800,
                minHeight: 10,
                minwidth: 10
            });
            Editdlg.parent().appendTo(jQuery("form:first"));

            var confirm = jQuery("#dialog-confirm").dialog({
                draggable: true,
                resizable: true,
                closed: true,
                show: 'Transfer',
                hide: 'Transfer',
                autoOpen: false,
                width: 300,
                minHeight: 10,
                minwidth: 10
            });
            confirm.parent().appendTo(jQuery("form:first"));
        });
        $(function() {
            $("#dialog-confirm").dialog({
                resizable: false,
                autoOpen: false,
                height: 140,
                modal: true
            });
        });

           
    </script>

    <div class="LinkMap">
        >>我的位置 >> 报表 >> 浇筑学校砼试压块送检统计表
    </div>
    <div>
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">功能介绍</a></li>
                <li><a href="#tabs-2">浇筑学校砼试压块送检统计表</a></li>
            </ul>
            <div id="tabs-1">
                该功能模块提供报表的添加，删除，修改功能。</div>
            <div id="tabs-2">
                <div style="width: auto; margin: 10px;">
                    <p>
                        <a href="#" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin">
                        </span>添加浇筑学校砼试压块送检统计表</a></p>
                    <asp:UpdatePanel ID="UPGridView" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="gvSchoolConcreteTestList" runat="server" CssClass="GridViewStyle"
                                OnRowCommand="gvSchoolConcreteTestList_RowCommand" DataKeyNames="Id" AutoGenerateColumns="False"
                                AllowPaging="True" AllowSorting="True" OnPageIndexChanging="gvSchoolConcreteTestList_PageIndexChanging"
                                PageSize="20">
                                <FooterStyle CssClass="GridViewFooterStyle" />
                                <RowStyle CssClass="GridViewRowStyle" />
                                <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                                <PagerStyle CssClass="GridViewPagerStyle" />
                                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                <Columns>
                                    <asp:BoundField DataField="ID" HeaderText="编号" /> 
                                    <asp:BoundField DataField="ProjectName" HeaderText="工程名称" />
                                    <asp:BoundField DataField="StrengtGrade" HeaderText="强度等级" />
                                    <asp:BoundField DataField="InputDate3Day" HeaderText="3天送检日期" />
                                    <asp:BoundField DataField="ClearedPeople3Day" HeaderText="3天送检人" />
                                    <asp:BoundField DataField="InputDate7Day" HeaderText="7天送检日期" />
                                    <asp:BoundField DataField="ClearedPeople7Day" HeaderText="7天送检人" />
                                    
                                    <asp:TemplateField HeaderText="修改">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                Text="修改" CommandArgument='<%# Bind("Id") %>' OnClientClick="OpenDialog();"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbtnDelete" runat="server" CausesValidation="False" CommandName="del"
                                                Text="删除" CommandArgument='<%# Bind("Id") %>' OnClientClick="OpenConfirmDialog()"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <!-- ui-dialog -->
                    <div id="dialog" title="添加浇筑学校砼试压块送检统计表">
                        <div style="height: auto;">
                            <div>
                                <div style="width: 100px; float: left">
                                    工程名称:</div>
                                <asp:TextBox runat="server" ID="txtProjectName" Width="670px"></asp:TextBox>
                            </div>
                            <div>
                                <div style="width: 100px; float: left">
                                    强度等级:</div>
                                <asp:TextBox runat="server" ID="txtStrengtGrade" Width="670px"></asp:TextBox>
                            </div>
                            <div style="width: 100%; float: left;">
                                <div>
                                    <b>3天送检日期及送检人</b>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 100px; float: left">
                                        3天送检日期</div> 
                                    <asp:TextBox runat="server" ID="txtInputDate3Day" Width="170px"></asp:TextBox>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 120px; float: left">
                                        3天送检人:</div>
                                    <asp:TextBox runat="server" ID="txtClearedPeople3Day" Width="170px"></asp:TextBox>
                                </div>
                            </div>
                            
                            <div style="width: 100%; float: left;">
                                <div>
                                    <b>7天送检日期及送检人</b>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 100px; float: left">
                                        7天送检日期</div> 
                                    <asp:TextBox runat="server" ID="txtInputDate7Day" Width="170px"></asp:TextBox>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 120px; float: left">
                                        7天送检人:</div>
                                    <asp:TextBox runat="server" ID="txtClearedPeople7Day" Width="170px"></asp:TextBox>
                                </div>
                            </div>
                            <br />
                            <div style="width: 500px; text-align: right">
                                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click"
                                    OnClientClick="CloseDialog()" />
                                <input id="btnCancel" type="button" value="Cancel" onclick="CloseDialog()" />
                            </div>
                        </div>
                    </div>
                    <!-- ui- edit dialog -->
                    <div id="EditDialog" title="浇筑学校砼试压块送检统计表修改">
                        <asp:UpdatePanel ID="UPEdit" runat="server">
                            <ContentTemplate>
                                <div style="height: auto;">
                                    <asp:Label runat="server" ID="lbEidtId" Visible="false"></asp:Label>
                                    <div>
                                        <div>
                                <div style="width: 100px; float: left">
                                    工程名称:</div>
                                <asp:TextBox runat="server" ID="txtEditProjectName" Width="670px"></asp:TextBox>
                            </div>
                            <div>
                                <div style="width: 100px; float: left">
                                    强度等级:</div>
                                <asp:TextBox runat="server" ID="txtEditStrengtGrade" Width="670px"></asp:TextBox>
                            </div>
                            <div style="width: 100%; float: left;">
                                <div>
                                    <b>3天送检日期及送检人</b>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 100px; float: left">
                                        3天送检日期</div> 
                                    <asp:TextBox runat="server" ID="txtEditInputDate3Day" Width="170px"></asp:TextBox>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 120px; float: left">
                                        3天送检人:</div>
                                    <asp:TextBox runat="server" ID="txtEditClearedPeople3Day" Width="170px"></asp:TextBox>
                                </div>
                            </div>
                            
                            <div style="width: 100%; float: left;">
                                <div>
                                    <b>7天送检日期及送检人</b>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 100px; float: left">
                                        7天送检日期</div> 
                                    <asp:TextBox runat="server" ID="txtEditInputDate7Day" Width="170px"></asp:TextBox>
                                </div>
                                <div style="width: 370px; float: left">
                                    <div style="width: 120px; float: left">
                                        7天送检人:</div>
                                    <asp:TextBox runat="server" ID="txtEditClearedPeople7Day" Width="170px"></asp:TextBox>
                                </div>
                            </div>
                                        <br />
                                        <div>
                                            最后修改人:
                                            <asp:Label runat="server" ID="lbLastModier"></asp:Label>
                                        </div>
                                        <div>
                                            最后修改时间:
                                            <asp:Label runat="server" ID="lbLastModifyDate"></asp:Label>
                                        </div>
                                        <br />
                                        <div style="width: 500px; text-align: right">
                                            <asp:Button ID="btnEdit" runat="server" Text="Submit" OnClick="btnEdit_Click" OnClientClick="CloseEditDialog()" />
                                            <input id="btnCancelEdit" type="button" value="Cancel" onclick="CloseEditDialog()" />
                                        </div>
                                    </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <!-- ui- delete dialog -->
                    <div id="dialog-confirm" title="删除确认?">
                        <asp:UpdatePanel ID="upDelete" runat="server">
                            <ContentTemplate>
                                <p>
                                    <span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
                                    确定要删除吗？</p>
                                <asp:Label runat="server" ID="lbDeleteId" Visible="false"></asp:Label>
                                <div style="width: 270px; text-align: right">
                                    <asp:Button ID="btnConfirmDelete" runat="server" Text="Submit" OnClick="btnDelete_Click"
                                        OnClientClick="CloseConfirmDialog()" />
                                    <input id="btnCancelDelete" type="button" value="Cancel" onclick="CloseConfirmDialog()" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
